import os
import sys

folders = []

print('Current dir:%s' % os.getcwd())
for root, dirs, files in os.walk(os.getcwd()):
    for dir in dirs:
        full_path = os.path.join(root, dir)
        if full_path not in folders:
            folders.append(full_path)
            #print(full_path)

for i in range(len(folders)):
    print('%5d: %s' % (i, folders[i]))

#target_folder = int(raw_input('Select the target folder index:'))
#print(target_folder)
#os.chdir(folders[target_folder])
